package com.example.paper.mvp.contract;

import com.example.mvp.model.BaseEntity;
import com.example.mvp.model.IModel;
import com.example.mvp.view.IView;

import java.util.Map;

import io.reactivex.Observable;

public interface FrameContract {

    interface IFrameModel extends IModel{
        Observable<BaseEntity> request(Map<String,Object> map);
    }

    interface IFrameView extends IView{
        //当有新版更新时P层通过接口回调给IFrameView传给更新框架
        void refresh(Map<String,Object> resultMap);
    }

}
